package com.luojun.entity;

import java.util.HashSet;
import java.util.Set;

public class Commodity {
	private int commodityId;
	private String describe;
	private  int price;
	private String picture;
	private int status; // 0为售完，1为上架中 ，2为审核中
	private String name;
	private User user;
	private Set<User> users = new HashSet<User>();
	private Set<Car> cars = new HashSet<Car>();
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Set<User> getUsers() {
		return users;
	}
	public void setUsers(Set<User> users) {
		this.users = users;
	}
	public Set<Car> getCars() {
		return cars;
	}
	public void setCars(Set<Car> cars) {
		this.cars = cars;
	}
	public int getCommodityId() {
		return commodityId;
	}
	public void setCommodityId(int commodityId) {
		this.commodityId = commodityId;
	}
	public String getDescribe() {
		return describe;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public String getPicture() {
		return picture;
	}
	public void setPicture(String picture) {
		this.picture = picture;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	@Override
	public String toString() {
		return "Commodity [commodityId=" + commodityId + ", describe=" + describe + ", price=" + price + ", picture="
				+ picture + ", status=" + status + ", name=" + name + "]";
	}

	
	
}
